import request from "@/utils/request";
export const getListAPi = (params: any) => {
    return request({
        url: "/carfilm.faq/index",
        method: "get",
        params,
    });
};

export const addApi = (data: any) => {
    return request({
        url: "/carfilm.faq/add",
        method: "post",
        data,
    });
};

export const editApi = (data: any) => {
    return request({
        url: "/carfilm.faq/edit",
        method: "put",
        data,
    });
};

export const delApi = (id: number) => {
    return request({
        url: `/carfilm.faq/del`,
        method: "delete",
        params: { id },
    });
};

//改变状态
export const changeStatusApi = (id: number, is_active: number) => {
    return request({
        url: `/carfilm.faq/changeStatus`,
        method: "post",
        data: { id, is_active },
    });
};
